import request from '@/router/axios'

// 查询任务订单列表
export function queryTaskOrderList(query) {
  return request({
    url: '/app/operateTaskOrder/page',
    method: 'get',
    params: query
  })
}

// 查询任务订单详情
export function queryTaskOrderDetail(id) {
  return request({
    url: '/app/operateTaskOrder/' + id,
    method: 'get'
  })
}

// 审核任务订单费用
export function auditTaskOrder(query) {
  return request({
    url: '/app/operateTaskOrder/changeTaskCost',
    method: 'post',
    data: query
  })
}

// 物流发货
export function sendTaskGoods(query) {
  return request({
    url: '/app/operateTaskOrder/checkTaskStatus',
    method: 'post',
    data: query
  })
}

// 财务列表
export function queryFinanceList(query) {
  return request({
    url: '/app/receiptsRecord/page',
    method: 'get',
    params: query
  })
}

// 查询单据详情
export function queryFinanceDetail(id) {
  return request({
    url: '/app/receiptsRecord/' + id,
    method: 'get'
  })
}

// 添加单据流水号
export function submitTradeNumber(query) {
  return request({
    url: '/app/receiptsRecord/editTradeNo',
    method: 'post',
    data: query
  })
}

// 修改发票信息
export function editInvoiceInfo(query) {
  return request({
    url: '/app/receiptsInvoice/edit',
    method: 'post',
    data: query
  })
}

// 添加线下单据
export function submitReceiptRecord(query) {
  return request({
    url: '/app/receiptsRecord/create',
    method: 'post',
    data: query
  })
}

// 删除线下单据
export function deleteReceiptRecord(id) {
  return request({
    url: '/app/receiptsRecord/delete?id=' + id,
    method: 'post'
  })
}

// 商品订单列表
export function queryGoodsList(query) {
  return request({
    url: '/app/operateOrder/page',
    method: 'get',
    params: query
  })
}

// 商品订单列表
export function queryGoodsDetail(id, query) {
  return request({
    url: '/app/operateOrder/detail/' + id,
    method: 'get',
    params: query
  })
}

// 修改订单备注
export function editOrderRemark(query) {
  return request({
    url: '/app/operateOrder/editRemark',
    method: 'post',
    data: query
  })
}
